package org.imraniqbal.frogger;

import org.imraniqbal.engine.Item;
import org.imraniqbal.engine.Map;

public class Flower extends Item {

	private static final long serialVersionUID = -5787887399098188625L;
	public Flower(int x, int y) {
		super(x, y);
	}
	/**
	 * @author imran
	 */
	@Override
	public void action(Object obj, Map map) {
		if(!(obj instanceof Frogger)){ return;	}
		 ((Frogger)obj).setHasFlower(true);
	}
	/**
	 * @author imran
	 */
	@Override
	public boolean equals(Object obj){
		if(!(obj instanceof Flower)){ return false; }
		return super.equals(obj);
	}
}
